package com.bjpowernode.springboot.web.controller;


import com.alibaba.dubbo.config.annotation.Reference;
import com.bjpowernode.springboot.service.UserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * CreateTime：2020/9/2 12:14
 */

@RestController
@RequestMapping("/user")
public class UserController {

    @Reference(interfaceClass = UserService.class, version = "1.0.0", timeout = 5000, check = false)
    private UserService userService;

    @RequestMapping("/getUserList")
    public Object getUserList(){
        return userService.getUserList();
    }
}
